package com.hy.utils;

import java.util.concurrent.TimeUnit;

/**
 * HTTP相关常量
 */
public class HttpConstants {

    /********** 超时时间设置 **********/
    public static final Integer CONNECT_TIMEOUT = 600;           // 连接超时时间
    public static final Integer WRITE_TIMEOUT = 500;             // 写操作超时时间
    public static final Integer READ_TIMEOUT = 400;              // 读操作超时时间
    public static final TimeUnit TIMEOUT_UNIT = TimeUnit.SECONDS; // 超时时间单位

    /********** 请求头信息 **********/
    public static final String SSE_CONTENT_TYPE = "text/event-stream";
    public static final String DEFAULT_USER_AGENT = "Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)";
    public static final String APPLICATION_JSON = "application/json";
    public static final String JSON_CONTENT_TYPE = APPLICATION_JSON + "; charset=utf-8";
}
